package com.zhouyu;

import com.zhouyu.protocol.HttpServer;
import com.zhouyu.register.LocalRegister;
import com.zhouyu.register.MapRemoteRegister;

import java.net.MalformedURLException;
import java.net.URL;

public class Bootstrap {

//    public static void start() throws MalformedURLException {
//        LocalRegister.regist(HelloService.class.getName(),"1.0", HelloServiceImpl.class);
//
//        // 注册中心注册
//        URL url = new URL("localhost", 8080);
//        MapRemoteRegister.regist(HelloService.class.getName(), url);
//
//        // Netty, Tomcat
//        HttpServer httpServer = new HttpServer();
//        httpServer.start("localhost", 8080);
//    }
}
